from pydantic_settings import BaseSettings
from typing import Dict, Any

class Settings(BaseSettings):
    VERSION: str = "0.1.0"
    BASE_URL:str = "https://om0813.zw7gmc49.work"
    DB_CONFIG: Dict[str, Any] = {
        'host': '121.41.167.117',
        'user': 'biman',
        'password': '123456',
        'database': 'biman',
        'port': 3306,
        'connect_timeout': 120,
        'read_timeout': 60,
        'write_timeout': 60,
        'autocommit': False  # 手动控制事务
    }

settings = Settings()